package cn.tjie.sys.mapper;

import cn.tjie.sys.domain.Role;
import cn.tjie.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tjie
 * @since 2023-02-13
 */
public interface RoleMapper extends BaseMapper<Role> {

    void addRoleMenus(@Param("id") Long id, @Param("menus")List<Long> menus);

    void addRolePermissions(@Param("id")Long id, @Param("permissions")List<Long> permissions);

    void delRoleMenus(Long id);

    void delRolePermissions(Long id);

    void delRoleEmployee(Long id);
}
